﻿using System;
using System.Text;

namespace Utils.Weixin.Models.Open
{
    public class AuthorizerInfo
    {
        /// <summary>
        /// 主题名称
        /// </summary>
        public string principal_name { get; set; }

        public string nick_name { get; set; }

        public string head_img { get; set; }
        /// <summary>
        /// 原始id
        /// </summary>
        public string user_name { get; set; }

        public string qrcode_url { get; set; }
        /// <summary>
        /// 公众号/小程序类型
        /// </summary>
        public TypeInfo service_type_info { get; set; }

        /// <summary>
        /// 公众号/小程序认证类型
        /// </summary>
        public TypeInfo verify_type_info { get; set; }

        public WbusinessInfo business_info { get; set; }

        public WMiniProgramInfo MiniProgramInfo { get; set; }

        /// <summary>
        /// 小程序注册方式
        /// </summary>
        public int register_type { get; set; }

        /// <summary>
        /// 帐号状态，该字段小程序也返回
        /// </summary>
        public int account_status { get; set; }
    }

    public class TypeInfo
    {
        /// <summary>
        /// 类型id
        /// </summary>
        public int id { get; set; }

        /// <summary>
        /// 类型说明
        /// </summary>
        public string name { get; set; }
    }

    /// <summary>
    /// 用以了解功能的开通状况（0代表未开通，1代表已开通）
    /// </summary>
    public class WbusinessInfo
    {

        /// <summary>
        /// 是否开通微信支付功能
        /// </summary>
        public int open_pay { get; set; }
        /// <summary>
        /// 是否开通微信摇一摇功能
        /// </summary>
        public int open_shake { get; set; }
        /// <summary>
        /// 是否开通微信扫商品功能
        /// </summary>
        public int open_scan { get; set; }

        /// <summary>
        /// 是否开通微信卡券功能
        /// </summary>
        public int open_card { get; set; }

        /// <summary>
        /// 是否开通微信门店功能
        /// </summary>
        public int open_store { get; set; }

    }


}
